/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:ViewWorksTagPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewWorksTagPK;

/**
 * persistent class for ViewWorksTag view
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewWorksTagPO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 标签表标识
     */
    private String tagId;
    /**
     * 标签编码
     */
    private String tagCode;
    /**
     * 作者表标识
     */
    private String authorId;
    /**
     * 作品表标识
     */
    private String worksId;
    /**
     * 作品名称
     */
    private String worksName;
    /**
     * 序主要用于词
     */
    private String preface;
    /**
     * 内容
     */
    private String content;
    /**
     * 所属作品集
     */
    private String sampleReels;
    /**
     * 其他作者
     */
    private String otherAuthor;
    /**
     * 作品创作时间
     */
    private String creationTime;
    /**
     * 创作背景
     */
    private String background;
    /**
     * 注释
     */
    private String annotate;
    /**
     * 译文
     */
    private String translation;
    /**
     * 编辑用户ID
     */
    private String userId;
    /**
     * 创建时间
     */
    private java.util.Date createTime;
    /**
     * 最后修改时间
     */
    private java.util.Date endTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 题材
     */
    private String theme;

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    public String getTagCode() {
        return tagCode;
    }

    public void setTagCode(String tagCode) {
        this.tagCode = tagCode;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getWorksId() {
        return worksId;
    }

    public void setWorksId(String worksId) {
        this.worksId = worksId;
    }

    public String getWorksName() {
        return worksName;
    }

    public void setWorksName(String worksName) {
        this.worksName = worksName;
    }

    public String getPreface() {
        return preface;
    }

    public void setPreface(String preface) {
        this.preface = preface;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSampleReels() {
        return sampleReels;
    }

    public void setSampleReels(String sampleReels) {
        this.sampleReels = sampleReels;
    }

    public String getOtherAuthor() {
        return otherAuthor;
    }

    public void setOtherAuthor(String otherAuthor) {
        this.otherAuthor = otherAuthor;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getAnnotate() {
        return annotate;
    }

    public void setAnnotate(String annotate) {
        this.annotate = annotate;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public java.util.Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    public java.util.Date getEndTime() {
        return endTime;
    }

    public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		tagId == null     	
    		&&
    		tagCode == null     	
    		&&
    		authorId == null     	
    		&&
    		worksId == null     	
    		&&
    		worksName == null     	
    		&&
    		preface == null     	
    		&&
    		content == null     	
    		&&
    		sampleReels == null     	
    		&&
    		otherAuthor == null     	
    		&&
    		creationTime == null     	
    		&&
    		background == null     	
    		&&
    		annotate == null     	
    		&&
    		translation == null     	
    		&&
    		userId == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		theme == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	tagId == null 
    		&&
    	tagCode == null 
    		&&
    	authorId == null 
    		&&
    	worksId == null 
    		&&
    	worksName == null 
    		&&
    	preface == null 
    		&&
    	content == null 
    		&&
    	sampleReels == null 
    		&&
    	otherAuthor == null 
    		&&
    	creationTime == null 
    		&&
    	background == null 
    		&&
    	annotate == null 
    		&&
    	translation == null 
    		&&
    	userId == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	theme == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		tagCode == null     	
    		&&
    		authorId == null     	
    		&&
    		worksId == null     	
    		&&
    		worksName == null     	
    		&&
    		preface == null     	
    		&&
    		content == null     	
    		&&
    		sampleReels == null     	
    		&&
    		otherAuthor == null     	
    		&&
    		creationTime == null     	
    		&&
    		background == null     	
    		&&
    		annotate == null     	
    		&&
    		translation == null     	
    		&&
    		userId == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		theme == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	tagCode == null 
    		&&
    	authorId == null 
    		&&
    	worksId == null 
    		&&
    	worksName == null 
    		&&
    	preface == null 
    		&&
    	content == null 
    		&&
    	sampleReels == null 
    		&&
    	otherAuthor == null 
    		&&
    	creationTime == null 
    		&&
    	background == null 
    		&&
    	annotate == null 
    		&&
    	translation == null 
    		&&
    	userId == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	theme == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewWorksTagPK buildPK(){
    	ViewWorksTagPK entityPK = new ViewWorksTagPK();
    	
		entityPK.setTagId( tagId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.tagId != null){
		   	 	toString += (this.tagId+",");
		   	 }
		  	 if(this.tagCode != null){
		   	 	toString += (this.tagCode+",");
		   	 }
		  	 if(this.authorId != null){
		   	 	toString += (this.authorId+",");
		   	 }
		  	 if(this.worksId != null){
		   	 	toString += (this.worksId+",");
		   	 }
		  	 if(this.worksName != null){
		   	 	toString += (this.worksName+",");
		   	 }
		  	 if(this.preface != null){
		   	 	toString += (this.preface+",");
		   	 }
		  	 if(this.content != null){
		   	 	toString += (this.content+",");
		   	 }
		  	 if(this.sampleReels != null){
		   	 	toString += (this.sampleReels+",");
		   	 }
		  	 if(this.otherAuthor != null){
		   	 	toString += (this.otherAuthor+",");
		   	 }
		  	 if(this.creationTime != null){
		   	 	toString += (this.creationTime+",");
		   	 }
		  	 if(this.background != null){
		   	 	toString += (this.background+",");
		   	 }
		  	 if(this.annotate != null){
		   	 	toString += (this.annotate+",");
		   	 }
		  	 if(this.translation != null){
		   	 	toString += (this.translation+",");
		   	 }
		  	 if(this.userId != null){
		   	 	toString += (this.userId+",");
		   	 }
		  	 if(this.createTime != null){
		   	 	toString += (this.createTime+",");
		   	 }
		  	 if(this.endTime != null){
		   	 	toString += (this.endTime+",");
		   	 }
		  	 if(this.remark != null){
		   	 	toString += (this.remark+",");
		   	 }
		  	 if(this.theme != null){
		   	 	toString += (this.theme+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.tagId != null){
		   		inputDescription += (this.tagId+" : 标签表标识,");
		   }
		   if(this.tagCode != null){
		   		inputDescription += (this.tagCode+" : 标签编码,");
		   }
		   if(this.authorId != null){
		   		inputDescription += (this.authorId+" : 作者表标识,");
		   }
		   if(this.worksId != null){
		   		inputDescription += (this.worksId+" : 作品表标识,");
		   }
		   if(this.worksName != null){
		   		inputDescription += (this.worksName+" : 作品名称,");
		   }
		   if(this.preface != null){
		   		inputDescription += (this.preface+" : 序主要用于词,");
		   }
		   if(this.content != null){
		   		inputDescription += (this.content+" : 内容,");
		   }
		   if(this.sampleReels != null){
		   		inputDescription += (this.sampleReels+" : 所属作品集,");
		   }
		   if(this.otherAuthor != null){
		   		inputDescription += (this.otherAuthor+" : 其他作者,");
		   }
		   if(this.creationTime != null){
		   		inputDescription += (this.creationTime+" : 作品创作时间,");
		   }
		   if(this.background != null){
		   		inputDescription += (this.background+" : 创作背景,");
		   }
		   if(this.annotate != null){
		   		inputDescription += (this.annotate+" : 注释,");
		   }
		   if(this.translation != null){
		   		inputDescription += (this.translation+" : 译文,");
		   }
		   if(this.userId != null){
		   		inputDescription += (this.userId+" : 编辑用户ID,");
		   }
		   if(this.createTime != null){
		   		inputDescription += (this.createTime+" : 创建时间,");
		   }
		   if(this.endTime != null){
		   		inputDescription += (this.endTime+" : 最后修改时间,");
		   }
		   if(this.remark != null){
		   		inputDescription += (this.remark+" : 备注,");
		   }
		   if(this.theme != null){
		   		inputDescription += (this.theme+" : 题材,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
